package com.yz.xyt.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;

import java.util.Objects;

public class MajorImportVo {

    @ExcelProperty("专业名称")
    private String name;

    @ExcelProperty("部门名称")
    private String deptName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return "MajorVo{" +
                "name='" + name + '\'' +
                ", deptName='" + deptName + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (this == obj)
            return true;
        if(this.getClass() != obj.getClass())
            return false;

        MajorImportVo major = (MajorImportVo) obj;
        if(this.name == major.name)
            return true;
        else
            return false;
    }
}
